package br.ufrj.dcc.xml.dynamicintervals.decoder;

import java.io.IOException;
import java.util.Collection;

import br.ufrj.dcc.xml.dynamicintervals.vo.Item;

/**
 * @author Alexandre Oliveira
 * This classes extends Decoder and implements output into a String. 
 */

public class StringDecoder extends Decoder {

	private StringBuffer result = new StringBuffer();
	
	@Override
	public void decode(Collection<Item> items) throws IOException {
		super.decode(items);
	}
	
	@Override
	protected void print(String s) throws IOException {
		result.append(s);
	}

	public String getResult() {
		return result.toString();
	}

}
